import bbRequest from "@/service";

enum dashBoradApi {
    categoryGoodsCount='/goods/category/count',
    categoryGoodsSale='/goods/category/sale',
    categoryGoodsFavor='/goods/category/favor',
    addressGoodsSale='/goods/address/sale',

}

//获取 echart 数据
export function getGoodsCountRequest(){
    return bbRequest.get({
        url:dashBoradApi.categoryGoodsCount
    })
}

export function getGoodsSaleRequest(){
    return bbRequest.get({
        url:dashBoradApi.categoryGoodsSale
    })
}

export function getGoodsFavorRequest(){
    return bbRequest.get({
        url:dashBoradApi.categoryGoodsFavor
    })
}

export function getAddressSaleRequest(){
    return bbRequest.get({
        url:dashBoradApi.addressGoodsSale
    })
}